package cn.tedu.entity;

public class Emp {
	private int empno;
	private String ename;
	private double comm;
	private String job;
	private Dept dept;
	public Emp(int empno, String ename, double comm, String job, Dept dept) {
		super();
		this.empno = empno;
		this.ename = ename;
		this.comm = comm;
		this.job = job;
		this.dept = dept;
	}
	public int getEmpno() {
		return empno;
	}
	public void setEmpno(int empno) {
		this.empno = empno;
	}
	public String getEname() {
		return ename;
	}
	public void setEname(String ename) {
		this.ename = ename;
	}
	public double getComm() {
		return comm;
	}
	public void setComm(double comm) {
		this.comm = comm;
	}
	public String getJob() {
		return job;
	}
	public void setJob(String job) {
		this.job = job;
	}
	public Dept getDept() {
		return dept;
	}
	public void setDept(Dept dept) {
		this.dept = dept;
	}
	@Override
	public String toString() {
		return "Emp [empno=" + empno + ", ename=" + ename + ", comm=" + comm + ", job=" + job + ", dept=" + dept + "]";
	}
	
}
